package com.csun.cmny.provider.service;

import com.csun.cmny.provider.model.domain.OpcFlowMessageGroupWay;
import com.csun.cmny.provider.model.vo.message.FlowMessageVo;
import com.csun.cmny.provider.model.vo.message.MessageWayVo;

import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-11-07 10:51
 * @Description:
 */
public interface OpcFlowMessageGroupWayService {

    /**
     * query group message way with code and group id
     *
     * @param msgCode   the message code
     * @param groupId   the group id
     *
     * @return  the flow message vo
     */
    FlowMessageVo queryGroupMessageWayWithCodeAndGroupId(String msgCode, Long groupId);

    /**
     * bind group message way
     *
     * @param opcFlowMessageGroupWay
     * @return
     */
    Integer bind(OpcFlowMessageGroupWay opcFlowMessageGroupWay);

    /**
     * untied group message way
     *
     * @param opcFlowMessageGroupWay
     *
     * @return
     */
    Integer untied(OpcFlowMessageGroupWay opcFlowMessageGroupWay);

    /**
     * query group message way list
     *
     * @param opcFlowMessageGroupWay
     *
     * @return
     */
    List<MessageWayVo> queryWayList(OpcFlowMessageGroupWay opcFlowMessageGroupWay);
}
